<template>
  <section class="entry-table">
     <el-table :data="data" border :show-header="false" :span-method="arraySpanMethod" :tree-props="{children: 'children', hasChildren: 'hasChildren'}"  row-key="col8Title">
          <el-table-column prop="col0Title" label=""  align="center"/>
          <el-table-column prop="col1Title" label=""  align="center"/>
          <el-table-column prop="col2Title" label=""  align="center"/>
          <el-table-column prop="col3Title" label=""  align="center"/>
          <el-table-column prop="col4Title" label=""  align="center"/>
          <el-table-column prop="col5Title" label=""  align="center"/>
          <el-table-column prop="col6Title" label=""  align="center"/>
          <el-table-column prop="col7Title" label=""  align="center"/>
     </el-table>
  </section>
</template>

<script>
/**
 * @file 智能做账详情 / 科目余额表
 */


export default {
  props: {
    data: {
      type: Array
    }
  },
  data() {
    return {

    };
  },
  methods: {
     arraySpanMethod({ row, column, rowIndex, columnIndex }) {
      if (row.colSpans !== undefined && row.columnIndexs) {
           const index = row.columnIndexs.indexOf(columnIndex);
          if(index !== -1) {
            return [1, row.colSpans[index]]
          }
          else {
            return [1, 0]
          }
      }
    },
  }
};
</script>
<style lang="less" scoped>
@import "../../../assets/var.less";


</style>